/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by:   焦质晔
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询
export const searchToolProjectRelation = params => axios.get(`${SERVER.TOOLMANAGEMENT}/toolProjectRelation/search`, {
  params
});

// 保存
export const saveToolProjectRelation = params => axios.post(`${SERVER.TOOLMANAGEMENT}/toolProjectRelation/save`, params);

// 删除
export const deleteToolProjectRelation = params => axios.get(`${SERVER.TOOLMANAGEMENT}/toolProjectRelation/delete`, {
  params
});

// 根据ID查询详情
export const queryByIdToolProjectRelation = params => axios.post(`${SERVER.TOOLMANAGEMENT}/toolProjectRelation/queryById`, params);

// 编辑
export const modifyToolProjectRelationById = params => axios.post(`${SERVER.TOOLMANAGEMENT}/toolProjectRelation/modify`, params);

// 查询工时定额
export const searchHourNormData = params => axios.get(`${SERVER.TOOLMANAGEMENT}/toolProjectRelation/searchHourNormData`, {
  params
});

// 查询维修项目
export const findItem = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/item/findItem`, {
  params
});


// 车系
export const getSeries = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/baseData/basicData/page/series`, {
  params
});
